package org.forwhat.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.forwhat.bean.WhatPost;
import org.forwhat.framework.annotation.Data;

import java.util.List;

//@Data("WhatPostDao")
@Mapper
public interface WhatPostDao{
    public List<WhatPost> select(@Param("start") int start, @Param("count")int count, @Param("search")String search);

    public List<WhatPost> selectHotPost(int length);
    WhatPost selectPostByPostId(String postId);
    public int addPostReadCount(String postId);

    int insertPost(WhatPost whatPost);

    String selectLatestPost();

}
